require.config({
	paths: {
		swiper: '../vendor/swiper/swiper-3.4.0.jquery.min',
		'swiper.animate': '../vendor/swiper/swiper.animate1.0.2.min',
		zepto: '../vendor/zepto.min',
		lazyloadmin: '../vendor/lazyload/zepto.picLazyLoad.min',
		hammer:'../vendor/hammer'
	},
	shim: {
		lazyloadmin: {
			deps:['zepto']
		}
	}
});
require([ 'zepto','swiper', 'swiper.animate','lazyloadmin','hammer','common'], function($) {
//lazyload
			$('.test-lazyload').picLazyLoad({
			    threshold:-80,
			});
//图片轮播
	$(function() {
		var mySwiper = new Swiper('.swiper-container', {
			loop: true,
			pagination: '.swiper-pagination',
			autoplay: 3000,
			speed: 1000,
		})
	})
	//顶部样式
	$(function(){
		function bottonAdds(bigall,smalls){
			var top = $(window).scrollTop();
			var docH = $(document).height();;
			var winH = $(window).height();
			if((docH- top - winH) < 50){
				$(bigall).append($(smalls).eq(0).clone());
			}
		}
		$(function(){
			$('.wallet-header').css('background','transparent')
		})
		
		$(window).scroll(function(){
			var top = $(window).scrollTop();
			if(top >= 60){
				$('.wallet-header').css('background','#3b9bff')
			}
			else{
				$('.wallet-header').css('background','transparent')
			}
		})
	})
	
})